
$(function() {
	setInterval(notice_my, 120000);
	notice_my();
	
	menu('my.php?do=My.tab', '#placeholder');
});

function notice_my() {
	var url = 'log.php?do=NoticeMy.my';	
	// alert(url);
	$.getJSON(url, function(json) {
		// alert($.toJSON(json));
		if (json == null || json == '') {
			return false;
		}
		
		$.each(json, function(k, v) {
			// alert($.toJSON(v));
			// $.jGrowl(v.content, { header: v.subject, life: 10000 });
			// $.jGrowl(v.content, { header: v.subject });
			$.jGrowl(v.subject, { header: v.createtime, life: 12000 });
			// $.jGrowl(v.subject);
		});
	});		
}
